/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class ParticleSensor {
    static categoryCode = '010030024';

    static categoryName = '颗粒物传感器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return ParticleSensor.categoryCode;
    }

    get categoryName() {
        return ParticleSensor.categoryName;
    }

    getNumber0_3(params) {
        return command({
            method: 'getNumber0_3',
            methodId: 'pDrhF8nR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getNumber0_5(params) {
        return command({
            method: 'getNumber0_5',
            methodId: 'p1vFjxPo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getNumber1(params) {
        return command({
            method: 'getNumber1',
            methodId: 'pGoxHGd1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getNumber10(params) {
        return command({
            method: 'getNumber10',
            methodId: 'pZgRT3Gk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getNumber2_5(params) {
        return command({
            method: 'getNumber2_5',
            methodId: 'pUPQ8Voq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getNumber5(params) {
        return command({
            method: 'getNumber5',
            methodId: 'ppAXIS6b',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPm1(params) {
        return command({
            method: 'getPm1',
            methodId: 'p3deou09',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPm10(params) {
        return command({
            method: 'getPm10',
            methodId: 'pdN7zshE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPm2_5(params) {
        return command({
            method: 'getPm2_5',
            methodId: 'ptRS9DFI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pgh0mc8W',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTvoc(params) {
        return command({
            method: 'getTvoc',
            methodId: 'phEqKYHz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3nLax',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default ParticleSensor;
